console = {
	log: air.Introspector ? air.Introspector.Console.log : function(){}
};




Ext.BLANK_IMAGE_URL = 'js/extjs/resources/images/default/s.gif';

Ext.ns('JSONxEdit');

// create application
JSONxEdit.app = function() {
	return {
		// public methods
		init: function() {
			var viewport = new Ext.Viewport({
				layout:'border',
				frame: true,
				items:[
				JSONxEdit_jsonStringForm,
				JSONxEdit_jsonTree,
				JSONxEdit_jsonEditorTabPanel
				]
			});

			new Ext.ToolTip({
				target: 'btn_loadToTree',
				html: 'Load JSON string to the tree'
			});
			new Ext.ToolTip({
				target: 'btn_loadFromTree',
				html: 'Load JSON string from the tree'
			});
			new Ext.ToolTip({
				target: 'btn_copyJson',
				html: 'JSON in Zwischenablage kopieren'
			});
			new Ext.ToolTip({
				target: 'btn_pasteJson',
				html: 'Einfügen in JSON Feld'
			});
			new Ext.ToolTip({
				target: 'btn_jsonSamples',
				html: 'Einfügen eines JSON Beispiel-Strings'
			});

			Ext.QuickTips.init();
		}
	};
}();

Ext.onReady(JSONxEdit.app.init, JSONxEdit.app);